package com.hncu.Test;

import java.util.Scanner;

public class Demo5 {//用String反转字符串
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();//获取字符串
        System.out.println(Filp(s));
    }
//翻转方法
    public static String Filp(String s) {
        String change = "";
        //从字符串的最后一位开始取
        for (int i = s.length()-1;i>=0;i--){
            change+=s.charAt(i);
        }
        return change;
    }
}
